import { ajaxPost } from "@/utils/ajax";

export const uploadImg = (
  data: {
    file: File,
  }
) => ajaxPost(
  '/uploadmedia',
  {...data},
  {
    baseURL: '/mysite',
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  }
);

export const getModel = (
  data: {
    path: string,
  }
) => ajaxPost(
  '/createstl',
  {...data},
  {
    baseURL: '/mysite',
  }
);